#include <iostream>
#include "tgaimage.h"
#include "my_gl.hpp"
#include "model.h"

const TGAColor white = {{255, 255, 255, 255}};
const TGAColor red = {{0, 0, 255, 255}};
const TGAColor green = {{0, 255, 0, 255}};


int main()
{
    int width = 1000;
    int height = 1000;
    TGAImage image(width, height, TGAImage::RGB);
    Model* model = new Model("../obj/african_head.obj");


    draw(*model, image, white, width, height, meshType::TRIANGLE);

    image.write_tga_file("../test.tga");


    return 0;    
}